﻿using ML.Entity;
using System.Collections.Generic;

namespace ML.IRepository
{
    /// <summary>
    /// 产品仓储接口
    /// </summary>
    public interface IProductRepository : IBaseRepository<ProductEntity>
    {
        Pager<ProductResponse> List(ProductSearch productSearch);

        ProductResponse GetDetailById(string id);

        IEnumerable<ProductResponse> GetListByMerchantId(string id, int pageindex, int pagesize);

        IEnumerable<ProductEntity> GetListByCategoryId(string id);

        IEnumerable<ProductEntity> GetProductInfoList();

        decimal GetDiscountPriceByProductId(string productId);

        bool UalMark(string id, int ualmark);

        bool UpdateSalesVolume(string id, int count);
    }
}